﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace RBOSS.CreditCard
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICreditCardService" in both code and config file together.
    [ServiceContract]
    public interface ICreditCardService
    {
        [OperationContract]
        bool VerifyCreditCard(CreditCardInfo creditCardInfo);
        [OperationContract]
        bool SaveCreditCard(CreditCardInfo creditCardInfo);

        
    }

    [DataContract]
    public class CreditCardInfo
    {
        [DataMember]
        public string CreditCardNumber;

        [DataMember]
        public string NameOnCard;

        [DataMember]
        public string ExpiredDate;

        [DataMember]
        public string SecurityNumber;

        [DataMember]
        public string Address1;

        [DataMember]
        public string Address2;

        [DataMember]
        public string City;

        [DataMember]
        public string State;

        [DataMember]
        public string Zip;

        [DataMember]
        public string Country;

        [DataMember] public decimal Amount;
    } 
}
